<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="houtai_mainhead.jsp"%>

<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="statics/css/manage.css" type="text/css"></link>
<script type="text/javascript" src="statics/js/usermanage.js"></script>
<!-- <script type="text/javascript">
	$(function() {
		$(".caozuo").on("click", ".red", function() {
			var id = $(this).attr("data-id");

			layer.open({
				type : 1,
				area : [ '450px', '350px' ],
				title : [ '幻灯片', 'font-size:18px;' ],
				content : $("#head" + id)
			});
			//layer.close(index);

		});
	})
</script> -->
</head>
<body>
	<table style="margin-top: 30px">
		<thead>
			<tr height="50px">
				<th>幻灯片图片</th>
				<th>地址</th>
				<th>操作</th>
			</tr>
		</thead>

		<tbody>

			<c:forEach items="${ppt}" var="pt">
				<tr>
					<td><img style="width: 200px; height: 60px;"
						src="statics/image/upload/ppt/${pt.fpPhoto}"></td>
					<td>${pt.fpUrl}</td>
					<td>
						<div class="caozuo">
							<a class="red" onclick="updateHead(this)"
								data-id="${pt.fpId}">修改</a>
							<div style="display: none;" id="head">
								<form action="" method="post" enctype="multipart/form-data">
									<img class="photo" width="300px" height="160px" alt="幻灯片照片" src="file://F:/git/rentcar/WebContent/statics/image/upload/ppt/${pt.fpPhoto}" /> 
										<input type="hidden" name="id" value="${pt.fpId}" />
									<div style="margin: 20px auto;">
										<a class="file"
											onclick="$(this).siblings('input[id=lefile]').click();">更换照片</a>
										<input id="lefile" type="file" onchange="previewFile(this)"
											name="tx" style="display: none" />
									</div>

									<button>确认保存</button>
								</form>
							</div>
						</div>
					</td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</body>
</html>